package com.changgou.task.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description:
 * @author: 大佬味的小男孩
 * @date: 2020-08-07 12:55
 **/
@Configuration //配置类
public class RabbitMQConfig {
    public static final String ORDER_TACK="order_tack";

    @Bean
    public Queue queue(){
        return new Queue(ORDER_TACK);
    }
}
